package cn.shopifymall.springbucks.service.impl;

import cn.shopifymall.springbucks.entity.Coffee;
import cn.shopifymall.springbucks.mapper.CoffeeMapper;
import cn.shopifymall.springbucks.service.CoffeeService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author efair
 * @since 2022-08-05
 */
@Service
public class CoffeeServiceImpl extends ServiceImpl<CoffeeMapper, Coffee> implements CoffeeService {

    @Override
    public Page<Coffee> getPageCoffeeList(Page<Coffee> page) {
        return baseMapper.selectPage(page, null);
    }

    @Override
    public List<Coffee> getCoffeeByIds(List<String> ids) {
        return baseMapper.selectBatchIds(ids);
    }
}
